﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">
  
  <head>
    
    <%@ include file="/WEB-INF/include/meta.jsp"%>
    <%@ include file="/WEB-INF/include/css.jsp"%>
    
  </head>
  <!-- end header -->
  <body>

    <div class="page-group">

      <div class="page page-current">
        
        <header class="bar bar-nav fs-header">
          <a href="${ctx.host}/hours" class="icon icon-left pull-left color-default"></a>
          <h1 class="title monthly-hour-banner">月课时</h1>
        </header>
        
        <div class="bar bar-header-secondary  bar-tab clearfix message-summary">
          <p class="pull-left no-margin" style="text-align: center; width: 100%;">${statistic.month}月&nbsp;&nbsp;总计${empty experienceHour ? statistic.hour : (statistic.hour - experienceHour)}课时</p>
       </div>
        
        <div class="content" style="bottom: 0px;">
          
          <div class="list-block no-margin">
            <ul>
              <c:forEach var="record" items="${records}">
                <li class="item-content monthly-hour-item">
                  <div class="item-inner">
                    <div class="item-title">
                      <fmt:formatDate value="${record.courseDay}" pattern="MM-dd"/><small>&nbsp;${record.courseTime}&nbsp;&nbsp;${record.courseDescription}</small>
                    </div>
                    <div class="item-after">${record.hour}课时</div>
                  </div>
                </li>
              </c:forEach>
            </ul> 
          </div>
          <!-- end list -->

        </div>             
        
      </div>
    </div>
    
    <%@ include file="/WEB-INF/include/script.jsp"%>
    
  </body>
</html>